package cn.edu.nju.contact.contacts;

import android.net.Uri;

public class ContactItem implements ContactItemInterface<ContactItem>{
	private String name;
	private String phoneNum;
	private Uri imageUri;
	
	public ContactItem(String name, String phoneNum, Uri imageUri){
		this.name = name;
		this.phoneNum = phoneNum;
		this.imageUri = imageUri;
	}

	public String getName(){
		return name;
	}
	
	public String getPhoneNum(){
		return phoneNum;
	}
	
	public Uri getImaUri(){
		return imageUri;
	}

	public String getLabel() {
		// TODO handle chinese character
		return Character.toString(name.charAt(0));
	}

	public int compareTo(ContactItem another) {
		return this.getName().compareTo(another.getName());
	}
}
